import Axios from './axios'

const instance = Axios()

export default {
  get(url: string, params: any) {
    return instance.get(url, { params })
  },
  post(url: string, params: any) {
    return instance.post(url, params)
  },
  put(url: string, params: any) {
    return instance.put(url, params)
  },
  delete(url: string, params: any) {
    return instance.delete(url, { params })
  }
}
